package com.link.base.base.user.service;

import com.link.base.base.user.model.OnlineUser;

import java.util.List;

/**
 * @author unknown
 * @date unknown
 * @comments 在线用户
 */
public interface OnlineRedisUserService {
    /**
     * 查询redis中在线用户
     *
     * @return 在线用户
     * @throws Exception
     */
    public List<OnlineUser> queryOnline() throws Exception;

    /**
     * 删除指定login的用户session
     * @param login
     * @throws Exception
     */
    public void deleteSessionByLogin(String login) throws Exception;

    /**
     * 删除指定session的用户
     * @author huanglongjian
     * @param sessionId
     * @throws Exception
     */
    public void deleteCRMSessionById(String sessionId) throws Exception;

    /**
     * 删除指定session的用户
     * @author huanglongjian
     * @param sessionId
     * @throws Exception
     */
    public void deleteAPPSessionById(String sessionId) throws Exception;
}
